import request from '@/utils/request';

/**
 * @Date         : 2023-03-16 10:26:07
 * @description  : 获取sku数据
 * @param         {*} page:
 * @param         {*} limit:
 * @return        {*}
 */
export const getSkuDataList = (page, limit) => {
	return request({
		url: `/admin/product/list/${page}/${limit}`,
		method: 'get',
	});
};

/**
 * @Date         : 2023-03-16 11:04:46
 * @description  : 获取商品详情
 * @param         {*} skuId:
 * @return        {*}
 */
export const getSkuDetail = skuId => {
	return request({
		url: `/admin/product/getSkuById/${skuId}`,
		method: 'get',
	});
};
